import Vue from 'vue'
import VueRouter from 'vue-router'
import Footer from '@/components/Footer'
import Header from '@/components/Header'
Vue.use(VueRouter)
  
const router = new VueRouter({
  routes: [
    {
        path: '/',
        components: {
            header: Header,
            default: () => import('@/views/Index.vue'),
            footer: Footer
        }
    },
    {
      path: '/login',//登录
      name: 'login',
      components: {
          header: Header,
          default: () => import('@/views/Login.vue'),
          footer: Footer
      }
    },
    {
      path: '/register',//注册
      name: 'register',
      components: {
          header: Header,
          default: () => import('@/views/Register.vue'),
          footer: Footer
      }
    },
    {
      path: '/regpaswrd',//忘记密码
      name: 'regpaswrd',
      components: {
          header: Header,
          default: () => import('@/views/Retrieve-password.vue'),
          footer: Footer
      }
    },
    {
      path: '/about',//关于我们
      name: 'about',
      components: {
          header: Header,
          default: () => import('@/views/Aboutus.vue'),
          footer: Footer
      }
    },
    {
      path: '/partners',//合作伙伴
      name: 'partners',
      components: {
          header: Header,
          default: () => import('@/views/Partners.vue'),
          footer: Footer
      }
    },
    {
      path: '/showroom',//RHOWROOM
      name: 'showroom',
      components: {
          header: Header,
          default: () => import('@/views/Showroom.vue'),
          footer: Footer
      }
    },
    {
      path:'/branddetails',//RHOWROOM详情
      name: 'branddetails',
      components: {
        header: Header,
        default: () => import('@/views/BrandDetails.vue'),
        footer: Footer
      }
    },
    {
      path:'/flagshipstore',//线上旗舰店
      name: 'flagshipstore',
      components: {
        header: Header,
        default: () => import('@/views/FlagshipStore.vue'),
        footer: Footer
      }
    },
    {
      path:'/searchresult',//搜索页面
      name: 'searchresult',
      components: {
        header: Header,
        default: () => import('@/views/SearchResult.vue'),
        footer: Footer
      }
    },
    {
      path:'/productlist',//商品列表
      name: 'productlist',
      components: {
        header: Header,
        default: () => import('@/views/Productlist.vue'),
        footer: Footer
      }
    },
    {
      path:'/productdetails',//商品详情
      name: 'productdetails',
      components: {
        header: Header,
        default: () => import('@/views/Productdetails.vue'),
        footer: Footer
      }
    },
    {
      path:'/shoppingbag',//购物袋
      name: 'shoppingbag',
      components: {
        header: Header,
        default: () => import('@/views/Shoppingbag.vue'),
        footer: Footer
      }
    },
    {
      path: '/placeanorder',//下单
      neme: 'placeanorder',
      components: {
        header: Header,
        default: () => import('@/views/Placeanorder.vue'),
        footer: Footer
      }
    },
    {
      path: '/placeorder',//提交订单
      neme: 'placeorder',
      components: {
        header: Header,
        default: () => import('@/views/Placeorder.vue'),
        footer: Footer
      }
    },
    {
      path: '/paysuccess',//支付成功
      neme: 'paysuccess',
      components: {
        header: Header,
        default: () => import('@/views/Paysuccess.vue'),
        footer: Footer
      }
    },
    {
      path: '/personalcenter',//个人中心-我的订单
      neme: 'personalcenter',
      components: {
        header: Header,
        default: () => import('@/views/PersonalCenter.vue'),
        footer: Footer
      }
    },
    {
      path: '/logistics',//个人中心-我的订单
      neme: 'logistcs',
      components: {
        header: Header,
        default: () => import('@/views/Logistics.vue'),
        footer: Footer
      }
    },
    {
      path: '/awardpointsystem',//个人中心-我的积分
      neme: 'awardpointsystem',
      components: {
        header: Header,
        default: () => import('@/views/AwardPointSystem.vue'),
        footer: Footer
      }
    },
    {
      path: '/myfavorite',//个人中心-我的喜欢
      neme: 'myfavorite',
      components: {
        header: Header,
        default: () => import('@/views/Myfavorite.vue'),
        footer: Footer
      }
    },
    {
      path: '/browsingrecords',//个人中心-浏览记录
      neme: 'browsingrecords',
      components: {
        header: Header,
        default: () => import('@/views/Browsingrecords.vue'),
        footer: Footer
      }
    },
    {
      path: '/mycoupon',//个人中心-我的优惠券
      neme: 'mycoupon',
      components: {
        header: Header,
        default: () => import('@/views/Mycoupon.vue'),
        footer: Footer
      }
    },
    {
      path: '/returnsmanagement',//个人中心-退货管理
      neme: 'returnsmanagement',
      components: {
        header: Header,
        default: () => import('@/views/Returnsmanagement.vue'),
        footer: Footer
      }
    },
    {
      path: '/applyforreturn',//个人中心-退货管理-买家申请退货
      neme: 'applyforreturn',
      components: {
        header: Header,
        default: () => import('@/views/Applyforreturn.vue'),
        footer: Footer
      }
    }

  ]
})

export default router